<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<div class="ui-widget">
        
    <table class="topMenu_TABLE">
        <tr>
            <td class="logoDisplay_TD"> 
                <img src="<%=request.getContextPath()%>/Images/musigma_Logo.png" style="vertical-align: bottom; padding: 0px; margin: 0px;" />               
            </td>
            <td class="msgDisplay_TD">
                <c:choose>
                    <c:when test="${fn:length(errorMessage) gt 0}">
                        <div id="errorMsgID" class="errorMsg_SPAN">
                            <c:forEach items='${errorMessage}' var="a" ><c:out value='${a}'/><br/></c:forEach>
                        </div>
                    </c:when>
                    <c:when test="${fn:length(actionMessage) gt 0}">
                        <div id="acctionMsgID" class="actionMsg_SPAN">
                            <c:forEach items='${actionMessage}' var="a" ><c:out value='${a}'/><br/></c:forEach>
                        </div>
                    </c:when>
                </c:choose>
            </td>
            <td class="sessionItem_TD">
                <c:if test="${smtbUserUI ne null}" var="sessionUser" scope="session" >
                    Welcome <b><c:out value='${smtbUserUI.nickName}' /> | </b>
                    <a href="ChangePwd.action" onclick="return underConstruction();"><img style="vertical-align: bottom;" title="Change Password" src="<%=request.getContextPath()%>/Images/ChangePassword.png" height="20"/></a> <b>|</b>
                    <a href="Logout.action"><img style="vertical-align: bottom;" title="Log Out" src="<%=request.getContextPath()%>/Images/logout_64x64.png" height="20"/></a>
                    </c:if>
            </td>
        </tr>
    </table>
</div>

<script type="text/javascript">
    $('#errorMsgID').delay(10000).fadeOut(1000);
    $('#acctionMsgID').delay(5000).fadeOut(1000);
</script>